<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false" %> <!-- 必须指定session为false -->

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>异步处理1</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">

  </head>
  
  <body>
	  <ul>
	    <c:forEach items="${ requestScope.books }" var="book">
	    	<li>${ book }</li>
	    </c:forEach>
	  </ul>
	  
	  <%
	  	out.println("业务调用结束的时间： " + new Date());
	  	//结束异步调用
	  	if(request.isAsyncStarted()) {
	  	
	  		request.getAsyncContext().complete();
	  	}
	  %>
  </body>
</html>
